home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / pc / files / sat / msat09.tgz / CLOGDISP.C < prev    next >
Text File  |  1994-09-17  |  495b  |  34 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <time.h>
  5. #include <ctype.h>
  6.  
  7. #include "viewlog.h"
  8.  
  9. int clogdisp(FILE *pFile)
  10. {
  11.     char callsign[10];
  12.     char buffer[90];
  13.  
  14.     buffer[0] = '\0';
  15.  
  16.     while (fread(callsign, 1, 7, pFile) != 0)
  17.     {
  18.         while (strlen(callsign) < 8)
  19.             strcat(callsign, " ");
  20.  
  21.         strcat(buffer, callsign);
  22.  
  23.         if (strlen(buffer) > 80)
  24.         {
  25.             strcat(buffer, "\n");
  26.             writetext(buffer);
  27.             buffer[0] = '\0';
  28.         }
  29.     }
  30.  
  31.     return(0);
  32. }
  33.  
  34.